package com.lucher.mes.dao;

import java.util.ArrayList;
import java.util.List;

import com.lucher.mes.po.Prisoner;

public interface PrisonerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Prisoner record);

    int insertSelective(Prisoner record);

    Prisoner selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Prisoner record);

    int updateByPrimaryKey(Prisoner record);
    
    //自定义接口
    List<Prisoner> findPrisonerList(Prisoner record);
    List<Prisoner> findPrisonerListForPage(Prisoner record);
    int findByCount(Prisoner record);
    Prisoner findPrisonerByPrisonercode(Prisoner record);
    public Integer saveBatch(ArrayList<Prisoner> records);
}